define(function (require, exports, module) {
    var article = require('./article.js');
    var archives = require('./archives.js');
    var about = require('./about.js');

    var routes = {
        0: article,
        1: archives,
        2: about
    }

    module.exports = {
        name: 'content',
        computed: {
            currentComponent: function () {
                return routes[this.$root.$data.location.path];
            }
        },
        render: function (h) {
            return h(this.currentComponent);
        }
    }
});